// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class ReportCDYDOri : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<ReportCDYDOri, MasterDbContextLocator>
    {

        public int Id { get; set; }
        public string DtuId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string CompanyCode { get; set; }
        public string CompanyName { get; set; }
        public string PrjCode { get; set; }
        public DateTime? RptTime { get; set; }
        public int? BReportOK { get; set; }
        public int? FacCode { get; set; }
        public string AdminCode { get; set; }
        public long? Lac { get; set; }
        public long? CellID { get; set; }
        public string CollectorID { get; set; }
        public int? GenStatus { get; set; }
        public string GenSerialNO { get; set; }
        public DateTime? GenStart { get; set; }
        public DateTime? GenStop { get; set; }
        public int? Period { get; set; }
        public double? KwPower { get; set; }
        public double? OilConsume { get; set; }
        public double? GenCurr1 { get; set; }
        public double? GenCurr2 { get; set; }
        public double? GenCurr3 { get; set; }
        public double? GenVolt1 { get; set; }
        public double? GenVolt2 { get; set; }
        public double? GenVolt3 { get; set; }
        public int? IsMains { get; set; }
        public double? Latitude { get; set; }
        public double? Logitude { get; set; }
        public byte[] OriBytes { get; set; }
    
        public void Configure(EntityTypeBuilder<ReportCDYDOri> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                entityBuilder.Property(e => e.AdminCode).HasMaxLength(6);

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.CollectorID).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(50);

                entityBuilder.Property(e => e.CompanyName).HasMaxLength(50);

                entityBuilder.Property(e => e.DtuId).HasMaxLength(50);

                entityBuilder.Property(e => e.GenSerialNO).HasMaxLength(50);

                entityBuilder.Property(e => e.GenStart).HasColumnType("datetime");

                entityBuilder.Property(e => e.GenStop).HasColumnType("datetime");

                entityBuilder.Property(e => e.OriBytes).HasColumnType("image");

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.RptTime).HasColumnType("datetime");
        }

    }
}

